package cn.zn.log.entity;

import cn.zn.base.bean.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 登录记录
 */
@TableName("sys_login_record")
public class SysLoginRecord extends BaseEntity<SysLoginRecord> {

    private String loginName; // 登录账号

    private String userName; // 用户名

    private String ipAddress; // 登录ip地址

    private String browser; // 浏览器类型

    private String os; // 操作系统

    private String status; // 登录状态（0成功 1失败）

    private String msg; // 提示消息

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime; // 访问时间

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
}
